package org.study.dubbo.client.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xjy.study.dubbo.api.demo.DemoService;

public class Consumer {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring.xml");
		DemoService demoService = (DemoService) context.getBean("demoService");
		String hello = demoService.sayHello("tom");
		System.out.println(hello); 
	}
}
